import {State} from './state'
/**
 * 类似于vue实例中的 计算属性
 */ 
export const getters = {
    filterList : (state:State)=>(item:number = 10)=>{
        return Array.from(state.list).filter(e=>{
            return e > item
        })
    }
  };